package com.hy.utils;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;

/**
 * Created by wayne on 18/4/2.
 */
public class DaoLogFilter extends Filter<ILoggingEvent> {
    public DaoLogFilter() {
    }

    public FilterReply decide(ILoggingEvent event) {
        return event.getLoggerName().contains("dao")?FilterReply.DENY:FilterReply.NEUTRAL;
    }
}
